package com.maiji.cloud.service;

import com.maiji.cloud.request.BaseInputDto;
import com.maiji.cloud.request.IdInputDto;
import com.maiji.cloud.response.login.UserInfoResDto;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;


@FeignClient(value = "MAIJICLOUD-APPLOGIN")
public interface UserService {

	/**
	 * 获得用户信息
	 * @param maijiToken
	 * @return
	 */
	@PostMapping("/user/getUserInfo")
	public UserInfoResDto getUserInfo(String maijiToken);
	/**
	 * 根据ID获取用户信息
	 * @param
	 * @return
	 */
	@PostMapping("/user/getUserInfoWithUserId")
	public UserInfoResDto getUserInfoWithUserId(BaseInputDto<IdInputDto> inputDto);


}
